<script setup>
import { ref } from 'vue'
import close from '@/assets/icon/close.svg';
const isewm = ref(false);
defineProps({
    msg: {
        type: String,
        default: () => ''
    }
})

const closeEwm = () => {
    isewm.value = true
}

defineExpose({
    closeEwm
})
</script>
<template>
    <div class="ewm" v-if="isewm">
        <div class="d-lkb-c" @click.stop="isewm = false">
            <img :src="close" alt="">
        </div>
        <img class="mmm" :src="msg" alt="">
    </div>
</template>
<style scoped>
.ewm {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9;
    background-color: rgba(0, 0, 0, .5);
}

.ewm .mmm {
    width: 600px;
    height: 600px;
}
</style>